import React from 'react'
import Food from './Food/Food'
import styles from './FoodList.module.css'
function FoodList({ foodList, onAddHandler ,onSubHandler}) {
  return (
    <div className={styles.FoodList}>
      {foodList.map(item => <Food
        key={item.id}
        food={item}
      />)}
    </div>
  )
}

export default FoodList